For asdocx users!
In the recent update of asdocx, I have added reg1 template to the asdocx package. You can read this page https://fintechprofessor.com/asdocx/...-epidemiology/ for more details . A short summary is presented here.
The reg1 template
The reg1 template is an asdocx package that creates regression table commonly found in biomedical research papers. It is common in the epidemiology research to report odd ratios or risk-ratios and their p-values from logistic regression or other regression models. reg1 template of asdocx makes it extremely easy to build such tables with much needed flexibility.
The template is free. However, it requires asdocx package. The template file is installed automatically when you install asdocx.
After installation of the template, you can use the template as shown below.
Syntax
Syntax Details
The syntax starts with the keywords asdocx. The word reg can be any Stata command for regressions such reg for ols, logistic for logistic regressions, etc.
The depvar is the dependent or the explained variable .
The indepvars are all other independent or explanatory variables in the regression model.
template(reg1) : invokes the reg1 template.
title(text) : Used to specify the table title.
dec(#) : To set decimal points for odd-ratios or other estimates, except the p-values. If left empty, three decimal points will be reported.
dect(#) : To set decimal points of the p-values. If this option is not specified, its values is set equal to dec().
reg_options : All other regression options such robust, etc.
A Simple Example
In the above example, immigrant is the dependent variable and all other variables are independent. After comma, option template(reg1) causes asdocx to use the reg1 template. The above code generates a table that looks like this.

In the recent update of asdocx, I have added reg1 template to the asdocx package. You can read this page https://fintechprofessor.com/asdocx/...-epidemiology/ for more details . A short summary is presented here.
The reg1 template
The reg1 template is an asdocx package that creates regression table commonly found in biomedical research papers. It is common in the epidemiology research to report odd ratios or risk-ratios and their p-values from logistic regression or other regression models. reg1 template of asdocx makes it extremely easy to build such tables with much needed flexibility.
The template is free. However, it requires asdocx package. The template file is installed automatically when you install asdocx.
After installation of the template, you can use the template as shown below.
Syntax
Code:
asdocx reg depvar indepvars, title(text) dec(#) dect(#) ///
template(reg1) reg_options
Syntax Details
The syntax starts with the keywords asdocx. The word reg can be any Stata command for regressions such reg for ols, logistic for logistic regressions, etc.
The depvar is the dependent or the explained variable .
The indepvars are all other independent or explanatory variables in the regression model.
template(reg1) : invokes the reg1 template.
title(text) : Used to specify the table title.
dec(#) : To set decimal points for odd-ratios or other estimates, except the p-values. If left empty, three decimal points will be reported.
dect(#) : To set decimal points of the p-values. If this option is not specified, its values is set equal to dec().
reg_options : All other regression options such robust, etc.
A Simple Example
Code:
* Load example dataset use http://fintechprofessor.com/asdocxAddins/table1.dta, clear * Make a regression table using the template(reg1) option asdocx logistic immigrant logistic immigrant bone_neck bone_fibro /// bone_lupus other_anyother /// template(reg1) replace dec(3) dect(4)

Comment